package list_;

import java.util.LinkedList;

/**
 * @Author 小闽
 * @Date 2024/11/1 8:26
 * @PackageName: list_
 * @ClassName: LinkedListCRUD
 * @Description: LinkedListCRUD
 * @Version 1.0
 */
@SuppressWarnings({"all"})
public class LinkedListCRUD {
    public static void main(String[] args) {
        LinkedList linkedList = new LinkedList();
        for (int i = 0; i < 2; i++) {
            linkedList.add(i);
        }

//        linkedList.add(100);
//        linkedList.add(100);
//        for (Object object : linkedList) {
//            System.out.println(object);
//        }
//        //linkedList.remove(0);
//        //linkedList.remove(kk);
//
//        linkedList.set(0,"苏宁易购");
//        System.out.println("===");
//        for (Object object : linkedList) {
//            System.out.println(object);
//        }
//        Object object = linkedList.get(0);
//        System.out.println("object=" + object);
//        System.out.println(linkedList.getFirst());
//        System.out.println(linkedList.getLast());


    }
}
